<template>
 <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  <van-swipe-item v-for="item in list.houseImg" :key="item.id">
    <img :src="'http://124.223.73.204:8080'+item" alt="">

  </van-swipe-item>

</van-swipe>
    <!-- {{$route.params}} -->
 </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'MessageHome',
  data () {
    return {
      list: []
    }
  },

  components: {

  },
  created () {
    this.Getdata()
  },
  methods: {
    async Getdata () {
      const { data } = await axios.get('http://www.xiaoshuaipeng.com:8080/houses/' + this.$route.params.code)
      console.log(data)
      this.list = data.body
    }
  }
}
</script>

<style lang="less" scoped>
 .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    // background-color: #39a9ed;
    img{
      width:100%;
     height: 252px;
    }
  }

</style>
